home *** CD-ROM | disk | FTP | other *** search
/ Hyper Stacks 1994 May / Hyper Stacks (Pacific HiTech)(1994)[Mac].iso / Science / Chemistry / Titrate / card_3032.txt < prev    next >
Encoding:
Text File  |  1991-11-23  |  4.9 KB  |  308 lines

  1. -- card: 3032 from stack: in
  2. -- bmap block id: 3532
  3. -- flags: 0000
  4. -- background id: 2767
  5. -- name: start
  6. ----- HyperTalk script -----
  7. on opencard
  8.  
  9. end opencard
  10.  
  11.  
  12.  
  13. -- part 11 (button)
  14. -- low flags: 00
  15. -- high flags: 0001
  16. -- rect: left=204 top=58 right=96 bottom=232
  17. -- title width / last selected line: 0
  18. -- icon id / first selected line: 0 / 0
  19. -- text alignment: 1
  20. -- font id: 0
  21. -- text size: 12
  22. -- style flags: 0
  23. -- line height: 16
  24. -- part name: New Button
  25.  
  26.  
  27. -- part 12 (field)
  28. -- low flags: 00
  29. -- high flags: 0000
  30. -- rect: left=271 top=297 right=315 bottom=327
  31. -- title width / last selected line: 0
  32. -- icon id / first selected line: 0 / 0
  33. -- text alignment: 0
  34. -- font id: 3
  35. -- text size: 12
  36. -- style flags: 0
  37. -- line height: 16
  38. -- part name: loc
  39.  
  40.  
  41. -- part 16 (button)
  42. -- low flags: 00
  43. -- high flags: 8003
  44. -- rect: left=407 top=321 right=339 bottom=504
  45. -- title width / last selected line: 0
  46. -- icon id / first selected line: 0 / 0
  47. -- text alignment: 1
  48. -- font id: 0
  49. -- text size: 12
  50. -- style flags: 0
  51. -- line height: 16
  52. -- part name: New Problem
  53. ----- HyperTalk script -----
  54. on mouseUp
  55.   global count
  56.  
  57.   global ans
  58.   global result
  59.   put random of 290 into count
  60.   put count + 100 into count
  61.   --put count into card field loc
  62.   put count/18 into ans
  63.   --put ans into card field "ans"
  64.   show card field "start"
  65.  
  66.  
  67. end mouseUp
  68.  
  69.  
  70.  
  71. -- part 17 (field)
  72. -- low flags: 00
  73. -- high flags: 0000
  74. -- rect: left=273 top=296 right=314 bottom=329
  75. -- title width / last selected line: 0
  76. -- icon id / first selected line: 0 / 0
  77. -- text alignment: 0
  78. -- font id: 3
  79. -- text size: 12
  80. -- style flags: 0
  81. -- line height: 16
  82. -- part name: loc1
  83.  
  84.  
  85. -- part 18 (field)
  86. -- low flags: 00
  87. -- high flags: 0000
  88. -- rect: left=290 top=318 right=334 bottom=331
  89. -- title width / last selected line: 0
  90. -- icon id / first selected line: 0 / 0
  91. -- text alignment: 0
  92. -- font id: 3
  93. -- text size: 12
  94. -- style flags: 0
  95. -- line height: 16
  96. -- part name: ans
  97.  
  98.  
  99. -- part 19 (field)
  100. -- low flags: 00
  101. -- high flags: 0001
  102. -- rect: left=250 top=290 right=334 bottom=406
  103. -- title width / last selected line: 0
  104. -- icon id / first selected line: 0 / 0
  105. -- text alignment: 0
  106. -- font id: 3
  107. -- text size: 18
  108. -- style flags: 256
  109. -- line height: 24
  110. -- part name: correct
  111.  
  112.  
  113. -- part 21 (button)
  114. -- low flags: 00
  115. -- high flags: 8003
  116. -- rect: left=252 top=302 right=334 bottom=346
  117. -- title width / last selected line: 0
  118. -- icon id / first selected line: 0 / 0
  119. -- text alignment: 1
  120. -- font id: 0
  121. -- text size: 12
  122. -- style flags: 0
  123. -- line height: 16
  124. -- part name: Instructions
  125. ----- HyperTalk script -----
  126. on mouseUp
  127.   push card
  128.   go to card "instructions"
  129. end mouseUp
  130.  
  131.  
  132.  
  133. -- part 22 (field)
  134. -- low flags: 81
  135. -- high flags: 0000
  136. -- rect: left=70 top=290 right=306 bottom=169
  137. -- title width / last selected line: 0
  138. -- icon id / first selected line: 0 / 0
  139. -- text alignment: 1
  140. -- font id: 3
  141. -- text size: 12
  142. -- style flags: 0
  143. -- line height: 16
  144. -- part name: conc
  145.  
  146.  
  147. -- part 24 (button)
  148. -- low flags: 00
  149. -- high flags: 8003
  150. -- rect: left=460 top=21 right=49 bottom=512
  151. -- title width / last selected line: 0
  152. -- icon id / first selected line: 0 / 0
  153. -- text alignment: 1
  154. -- font id: 0
  155. -- text size: 12
  156. -- style flags: 0
  157. -- line height: 16
  158. -- part name: Quit
  159. ----- HyperTalk script -----
  160. on mouseUp
  161.   go to card 1
  162. end mouseUp
  163.  
  164.  
  165.  
  166. -- part 25 (field)
  167. -- low flags: 81
  168. -- high flags: 0001
  169. -- rect: left=4 top=4 right=342 bottom=242
  170. -- title width / last selected line: 0
  171. -- icon id / first selected line: 0 / 0
  172. -- text alignment: 1
  173. -- font id: 2
  174. -- text size: 18
  175. -- style flags: 0
  176. -- line height: 24
  177. -- part name: start
  178. ----- HyperTalk script -----
  179. on mouseup
  180.   global a
  181.   send mouseup to bkgnd button "reset"
  182.   put the seconds into a
  183.   hide card field start
  184. end mouseup
  185.  
  186.  
  187. -- part 26 (button)
  188. -- low flags: 00
  189. -- high flags: 0000
  190. -- rect: left=248 top=20 right=50 bottom=282
  191. -- title width / last selected line: 0
  192. -- icon id / first selected line: 0 / 0
  193. -- text alignment: 1
  194. -- font id: 0
  195. -- text size: 12
  196. -- style flags: 0
  197. -- line height: 16
  198. -- part name: New Button
  199. ----- HyperTalk script -----
  200. on mouseUp
  201.   global ans
  202.   global a
  203.   global count
  204.   ask "What value for correct answer?(<40)"
  205.   put it into holder
  206.   if holder < 0 then put holder * -1 into hloder
  207.   if holder < 40 then
  208.     put holder * 18 into count
  209.     put holder into ans
  210.     put the seconds into a
  211.     go to card start
  212.     show card field start
  213.   else
  214.   end if
  215. end mouseUp
  216.  
  217.  
  218.  
  219. -- part contents for card part 12
  220. ----- text -----
  221. 326
  222.  
  223. -- part contents for background part 7
  224. ----- text -----
  225. 0
  226. 1
  227. 2
  228. 3
  229. 4
  230. 5
  231. 6
  232. 7
  233. 8
  234. 9
  235. 10
  236. 11
  237. 12
  238. 13
  239. 14
  240. 15
  241. 16
  242. 17
  243. 18
  244. 19
  245. 20
  246. 21
  247. 22
  248. 23
  249. 24
  250. 25
  251. 26
  252. 27
  253. 28
  254. 29
  255. 30
  256. 31
  257. 32
  258. 33
  259. 34
  260. 35
  261. 36
  262. 37
  263. 38
  264. 39
  265. 40
  266. 41
  267. 42
  268. 43
  269. 44
  270. 45
  271. 46
  272. 47
  273. 48
  274. 49
  275. 50
  276.  
  277.  
  278. -- part contents for card part 17
  279. ----- text -----
  280. 21
  281.  
  282. -- part contents for card part 18
  283. ----- text -----
  284. 18.111111
  285.  
  286. -- part contents for card part 22
  287. ----- text -----
  288. 0.10 M HCl
  289.  
  290. -- part contents for card part 19
  291. ----- text -----
  292.  
  293.  
  294. correct!
  295.  
  296. score
  297. 1591
  298.  
  299. -- part contents for card part 25
  300. ----- text -----
  301.  
  302.  
  303.  
  304. Click Here to Start
  305.  
  306.  
  307. Clock will start
  308. running.